LERT (message)
                                                                                    Pg 29-2

message
    String      Message to display in the alert

ALERT displays a Note type alert box. The alert displays message and contains an OK button. The alert box can display up to 255 characters, depending on the widths of the characters contained in message.

Alerts are used to provide information (such as an error message) to the user without requiring any information to be returned. They are also useful during development for displaying status information (such as variable values) to the designer.

The following example displays an alert showing information about a company. Notice that the string that is displayed contains carriage returns, which cause the string to wrap to the next line:

CR := Char (13)
ALERT ("Company: " +[Companies]Name +CR+"People in company: " + String (Records in selection ([People])) + CR + "Number of parts they supply: " + String (Records in selection ([Parts])))

NOTE: The code following the ALERT command till the end of the example should be on one line in the 4th DIMENSION procedure editor. It has been wrapped here to fit into the page size of this manual.

See also:  har, Records n election,  tring